package com.tinycloud.miracll.product.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tinycloud.miracll.product.mapper.RecipeProdInfoMapper;
import com.tinycloud.miracll.product.domain.RecipeProdInfo;
import com.tinycloud.miracll.product.service.IRecipeProdInfoService;

/**
 * 品管号生产信息Service业务层处理
 * 
 * @author tiny
 * @date 2022-06-06
 */
@Service
public class RecipeProdInfoServiceImpl implements IRecipeProdInfoService {
    @Autowired
    private RecipeProdInfoMapper recipeProdInfoMapper;

    /**
     * 查询品管号生产信息
     * 
     * @param lineNum 品管号生产信息主键
     * @return 品管号生产信息
     */
    @Override
    public RecipeProdInfo selectRecipeProdInfoByLineNum(String lineNum) {
        return recipeProdInfoMapper.selectRecipeProdInfoByLineNum(lineNum);
    }

    /**
     * 查询品管号生产信息列表
     * 
     * @param recipeProdInfo 品管号生产信息
     * @return 品管号生产信息
     */
    @Override
    public List<RecipeProdInfo> selectRecipeProdInfoList(RecipeProdInfo recipeProdInfo) {
        return recipeProdInfoMapper.selectRecipeProdInfoList(recipeProdInfo);
    }

    /**
     * 新增品管号生产信息
     * 
     * @param recipeProdInfo 品管号生产信息
     * @return 结果
     */
    @Override
    public int insertRecipeProdInfo(RecipeProdInfo recipeProdInfo) {
        return recipeProdInfoMapper.insertRecipeProdInfo(recipeProdInfo);
    }

    /**
     * 修改品管号生产信息
     * 
     * @param recipeProdInfo 品管号生产信息
     * @return 结果
     */
    @Override
    public int updateRecipeProdInfo(RecipeProdInfo recipeProdInfo) {
        return recipeProdInfoMapper.updateRecipeProdInfo(recipeProdInfo);
    }

    /**
     * 批量删除品管号生产信息
     * 
     * @param lineNums 需要删除的品管号生产信息主键
     * @return 结果
     */
    @Override
    public int deleteRecipeProdInfoByLineNums(String[] lineNums) {
        return recipeProdInfoMapper.deleteRecipeProdInfoByLineNums(lineNums);
    }

    /**
     * 删除品管号生产信息信息
     * 
     * @param lineNum 品管号生产信息主键
     * @return 结果
     */
    @Override
    public int deleteRecipeProdInfoByLineNum(String lineNum) {
        return recipeProdInfoMapper.deleteRecipeProdInfoByLineNum(lineNum);
    }
}
